<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<f:loadBundle var="Message" basename="demo.Messages" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<link rel="stylesheet" href="./css/screen.css" type="text/css" />
<title>Bank Application</title>
</head>
<body>


<f:view>
	<h1><h:outputText value="#{Message.header}" /></h1>

	<h:messages style="color: red" />
	<h:panelGroup styleClass="bodyColumn">
		<h:panelGroup styleClass="pageform">
			<h:panelGrid columns="4">
				<h:outputLabel styleClass="label" for="t1">label1</h:outputLabel>
				<h:inputText styleClass="data" id="t1" value="value1" />
				<h:outputLabel styleClass="label" for="t2">label2</h:outputLabel>
				<h:inputText styleClass="data" id="t2" value="value2" />
				<h:outputLabel styleClass="label" for="t3">label3</h:outputLabel>
				<h:inputText styleClass="data" id="t3" value="value3" />
				<h:outputLabel styleClass="label" for="t4">label4</h:outputLabel>
				<h:inputText styleClass="data" id="t4" value="value4" />
			</h:panelGrid>
		</h:panelGroup>
	</h:panelGroup>




	<h:form id="greetingForm">
		<h:panelGroup styleClass="bodyColumn">
			<h:panelGroup styleClass="pageform">


				<h:panelGrid>
					<h:panelGroup>

						<h:panelGroup>
							<h:outputText styleClass="label"
								value="#{Message.prompt_message}" />
							<h:inputText styleClass="data" value="#{user.name}"
								required="true">
								<f:validateLength maximum="30" minimum="3" />
							</h:inputText>
						</h:panelGroup>
						<h:panelGroup>
							<h:outputText value="#{Message.prompt_message}" />
							<h:inputText value="#{user.name}" required="true">
								<f:validateLength maximum="30" minimum="3" />
							</h:inputText>
						</h:panelGroup>
					</h:panelGroup>

				</h:panelGrid>


				<h:commandButton action="hello" value="Say Hello!" />
			</h:panelGroup>
		</h:panelGroup>
	</h:form>
</f:view>
</body>
</html>